<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript" src="./jquery.js"></script>
<script type="text/javascript" src="./jump.js"></script>
<script type="text/javascript">
    var myapp=jump.app.create({});
    
    
    myapp.res.layout.fragment.add("./main.xml","main");
    myapp.res.layout.fragment.add("./main2.xml","main2");
    myapp.res.layout.activity.add("./main_f.xml","main");
    
    myapp.loadResources(function(){
    var main=function(){this.init()};main.inherits(jump.activity);
    
    var main_fragment=function(act){this.init(act)};
    
    main_fragment.inherits(jump.fragment);
    
    
    main_fragment.prototype.onCreate=function()
    {
    	this.setLayout(myapp.res.layout.fragment.get("main"));
    }
    var main_fragment2=function(act){this.init(act)};
    
    main_fragment2.inherits(jump.fragment);
    
    main_fragment2.prototype.onCreate=function()
    {
    	this.setLayout(myapp.res.layout.fragment.get("main2"));
    }
    main.prototype.Show=function()
    {
    	this.uber('Show');
    	var inf=new jump.view.inflater(this);
 		
    	this.setLayout(myapp.res.layout.activity.get("main"));
    	
    	this.findViewById("main_window1").setFragment(new main_fragment(this));
        this.findViewById("main_window2").setFragment(new main_fragment2(this));
    	//do something else
    };
    
    myapp.addActivity("main",new main());
    myapp.start();
    });
    
</script>
</head>
<body>

</body>
</html>